import request from '@/utils/request'

// 查询物品工序清单列表
export function listBomProcess(query) {
  return request({
    url: '/mes/bomProcess/list',
    method: 'get',
    params: query
  })
}

// 查询物品工序清单详细
export function getBomProcess(goodsCode) {
  return request({
    url: '/mes/bomProcess/' + goodsCode,
    method: 'get'
  })
}

// 新增物品工序清单
export function addBomProcess(data) {
  return request({
    url: '/mes/bomProcess',
    method: 'post',
    data: data
  })
}

// 修改物品工序清单
export function updateBomProcess(data) {
  return request({
    url: '/mes/bomProcess',
    method: 'put',
    data: data
  })
}

// 删除物品工序清单
export function delBomProcess(goodsCode) {
  return request({
    url: '/mes/bomProcess/' + goodsCode,
    method: 'delete'
  })
}
